package com.effectiv.gooruda.rest.api.operation;

import java.util.List;

import jodd.mail.ReceivedEmail;

import com.effectiv.gooruda.rest.api.domain.Email;
import com.effectiv.gooruda.rest.api.domain.EmailServerConfiguration;

public interface EmailOperations {
	
	EmailServerConfiguration saveEmailServerConfiguration(EmailServerConfiguration config);
	EmailServerConfiguration findOneConfigurationByName(String name);
	List<EmailServerConfiguration> findAll();
	void deleteConfigurationByName(String name);
	void send(String configName, Email email);
	
	ReceivedEmail[] receive(String configName);
	
}
